package com.zwy.alhorthms;

/**
 * 选择排序
 * @author 天火
 * @className ArrayData
 */
public class ArrayData {
    private int[] data = {1, 4, 9, 5, 3, 2, 7, 8, 6, 0};
    //private int[] data = {0,1, 2, 3, 4, 5, 6, 7, 8, 9};

    static void swap(int[] arr,int j,int i){
        int temp = arr[j];
        arr[j] = arr[i];
        arr[i] = temp;
    }

    static void print(int[] arr){
        for(int value : arr){
            System.out.print(value + "    ");
        }
    }



    public  int[] getData() {
        return data;
    }

    public  void setData(int[] data) {
        this.data = data;
    }
}
